# coding:utf-8
import sys

from qfluentwidgets import (qconfig, QConfig, ConfigItem, Theme, FolderValidator, ConfigSerializer)
from .toolValidator import FileValidator


class Config(QConfig):
    """ Config of application """

    # folders    
    filePath = ConfigItem(
        "File", "FilePath", "app/file/111.xlsx", FileValidator()
    )

    sourceFolder = ConfigItem(
        "File", "SourceFolder", "app/file", FolderValidator()
    )
    targetFolder = ConfigItem(
        "File", "TargetFolder", "app/file", FolderValidator()
    )


cfg = Config()
cfg.themeMode.value = Theme.AUTO
qconfig.load('/app/config/config.json', cfg)

